package struts.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.EventDispatchAction;
import org.springframework.beans.factory.annotation.Autowired;

import bean.UserObject;

public class WelcomeAction extends EventDispatchAction
{
	
	@Autowired
	UserObject userObject;
	
    /**
     * 主画面机能
     * 主画面迁移
     * 
     * @param mapping
     * @param form
     * @param request
     * @param response
     * @return
     */
    public ActionForward init( ActionMapping mapping, ActionForm form, HttpServletRequest request,
        HttpServletResponse response )
    {
        //主画面迁移
        return mapping.findForward( "sucess" );
    }
}
